<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
response.setHeader("Cache-Control","no-cache"); 
response.setHeader("Pragma","no-cache"); 
response.setDateHeader ("Expires", -1); 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Doctors List</title>
</head>
<body>

	<%@page import="com.cm309.hospital.model.Doctor"%>
	<jsp:useBean id="doctors" scope="request" type="java.util.List"></jsp:useBean>

	<TABLE border="1">
		<thead>
			<td>醫生</td>
			<td>科目</td>
			<td>性別</td>
		</thead>

		<%
			for (int i = 0; i < doctors.size(); i++) {
				Doctor d = (Doctor) doctors.get(i);
		%>
		<tr>
<%-- 		<td><a href="bookingFirst.do?doctor_id=<%=d.getDoctor_id()%>"><%=d.getName()%></a></td>
--%>
			<td><%=d.getName()%></a></td>
			<td><%=d.getSubject_name()%></td>
			<td><%=d.getSex() %></td>
		<tr>
			<%
				}
			%>
		
	</TABLE>
	<br>
	<a href="mainPage.do">返回主目錄</a>


</body>
</html>